#include "JourneyPlanner.h"

CJourneyPlannerOutput::~CJourneyPlannerOutput()
	{
	for(TInt i = 0 ; i < iItineraries.Count() ; ++i)
		delete iItineraries[i];
	iItineraries.Close();
	delete iErrorMessage;
	}

CJourneyPlannerOutput::CItinerary::~CItinerary()
	{
	for(TInt i = 0 ; i < iLegs.Count() ; ++i)
		delete iLegs[i];
	delete iFare;
	iLegs.Close();
	}

CJourneyPlannerOutput::CItinerary::CLeg::~CLeg()
	{
	delete iServiceDesc;
	delete  iFromLocation;
	delete  iToLocation;
	delete  iLegFare;
	}
